package pers.xuehongyan.useat.server.exception.user;

import org.springframework.http.HttpStatus;

/**
 * @author xuehongyan
 */
public class UserNotFoundException extends UserException {
    public UserNotFoundException(String username) {
        super(String.format("User with name:%s not found.", username));
    }

    @Override
    public HttpStatus getHttpStatus() {
        return HttpStatus.NOT_FOUND;
    }
}
